<form class="layui-form" name="safever" action="" method="post">
<div class='safever'>
<dl class='t'>
	<dt>&nbsp;</dt>
	<dd>为保障您的账号资金安全，请先通过安全验证！</dd>
</dl>
<dl>
	<dt>
		安全码
	</dt>
	<dd><div class='box'><input name="safe" class='input' lay-verify="safe" type="password" placeholder="请输入安全码"><a class='s' href='/member/fetch/safe' target="_blank">找回安全码</a></div>
	</dd>
</dl>

<dl>
	<dt>
		验证手机	</dt>
	<dd><div class='box'><div class='input'><font>{$user.phone}</font><input type="hidden" name="phone" value="{$user.phone}" ></div><a class='s' href='/member/verify/phone' target="_blank">修改认证手机</a></div>
	</dd>
</dl>
<dl>
	<dt>
		验证码
	</dt>
	<dd><div class='box'><input name="vcode" class='input' type="text" placeholder="请输入验证码"><input class="s" lay-submit="" id="Sendbtn"  type="button" data='phone' value='获取验证码' lay-filter="verify"></div>
	</dd>
</dl>
<dl>
	<dt>
		&nbsp;
	</dt>
	<dd><input class='submit' lay-submit="" lay-filter="submit"  type="button" value='确 定'>
	</dd>
</dl>
</div>
	<input type="hidden" value="1" name="layer" />
	<input type="hidden" value="safever" name="flow" />
	<input type="hidden" value="phone" name="mode" />
	<input type="hidden" value="{:shop_bh()}" name="random" />
	<input type="hidden" value="cashed" name="action" />
</form>
<script>
{$sendtime}
layui.use('form', function() {
	var form = layui.form();
	form.on('submit(verify)', function(data) {
		sendbtn('#Sendbtn',100,'[name=safever]');
		return false;
	});
	form.on('submit(submit)', function(data) {
		var code=$("input[name=vcode]").val();
		if(code.length<4 || code.length>6){
			$('input[name=vcode]').val('').focus();layer.tips('验证码错误，请重新输入','input[name=vcode]',{tips:[1,'#f90']});return false;
		}
		var loading= layer.load();
		Aform("safever",$("form[name=safever]").serialize(),function(datas){
			if(datas.state==1){
				ver=true;
				$('#cashed').click();
				return false;
			}
			Rs(datas);
		});
		return false;
	});
	});

</script>